home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / PHP / include / php / main / win95nt.h < prev   
Encoding:
C/C++ Source or Header  |  2000-10-31  |  1.5 KB  |  64 lines

  1. /* Defines and types for Windows 95/NT */
  2. #define HAVE_DECLARED_TIMEZONE
  3. #define WIN32_LEAN_AND_MEAN
  4. #include <io.h>
  5. #include <malloc.h>
  6. #include <direct.h>
  7. #include <stdlib.h>
  8. #include <stdio.h>
  9. #include <stdarg.h>
  10. #include <sys/types.h>
  11. typedef int uid_t;
  12. typedef int gid_t;
  13. typedef char * caddr_t;
  14. #define lstat(x, y) stat(x, y)
  15. #define        _IFIFO    0010000    /* fifo */
  16. #define        _IFBLK    0060000    /* block special */
  17. #define        _IFLNK    0120000    /* symbolic link */
  18. #define S_IFIFO        _IFIFO
  19. #define S_IFBLK        _IFBLK
  20. #define    S_IFLNK        _IFLNK
  21. #define pclose(a)        _pclose(a)
  22. #define popen(a, b)        _popen(a, b)
  23. #define chdir(path) SetCurrentDirectory(path)
  24. #define mkdir(a,b)    _mkdir(a)
  25. #define rmdir(a)    _rmdir(a)
  26. #define getpid        _getpid
  27. #define php_sleep(t)    Sleep(t*1000)
  28. #define getcwd(a, b)        _getcwd(a, b)
  29. #define snprintf    _snprintf
  30. #define off_t        _off_t
  31. #define vsnprintf    _vsnprintf
  32. typedef unsigned int uint;
  33. typedef unsigned long ulong;
  34. #if !NSAPI
  35. #define strcasecmp(s1, s2) stricmp(s1, s2)
  36. #define strncasecmp(s1, s2, n) strnicmp(s1, s2, n)
  37. typedef long pid_t;
  38. #endif
  39.  
  40. /* missing in vc5 math.h */
  41. #define M_PI             3.14159265358979323846
  42. #define M_TWOPI         (M_PI * 2.0)
  43. #define M_PI_2           1.57079632679489661923
  44. #define M_PI_4           0.78539816339744830962
  45.  
  46. #if !PHP_DEBUG
  47. #ifdef inline
  48. #undef inline
  49. #endif
  50. #define inline  __inline
  51. #endif
  52.  
  53. /* General Windows stuff */
  54. #define WINDOWS 1
  55.  
  56. /* Prevent use of VC5 OpenFile function */
  57. #define NOOPENFILE
  58.  
  59. /* sendmail is built-in */
  60. #ifdef PHP_PROG_SENDMAIL
  61. #undef PHP_PROG_SENDMAIL
  62. #define PHP_PROG_SENDMAIL "Built in mailer"
  63. #endif
  64.